package com.situ.boot.entity;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "sgmx", schema = "brcc", catalog = "")
public class SgmxEntity {
    private int id;
    private Integer sgid;
    private String sgname;
    private Double sgmony;
    private Double sgmond;
    private String sgdate;
    private String sgstat;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "sgid")
    public Integer getSgid() {
        return sgid;
    }

    public void setSgid(Integer sgid) {
        this.sgid = sgid;
    }

    @Basic
    @Column(name = "sgname")
    public String getSgname() {
        return sgname;
    }

    public void setSgname(String sgname) {
        this.sgname = sgname;
    }

    @Basic
    @Column(name = "sgmony")
    public Double getSgmony() {
        return sgmony;
    }

    public void setSgmony(Double sgmony) {
        this.sgmony = sgmony;
    }

    @Basic
    @Column(name = "sgmond")
    public Double getSgmond() {
        return sgmond;
    }

    public void setSgmond(Double sgmond) {
        this.sgmond = sgmond;
    }

    @Basic
    @Column(name = "sgdate")
    public String getSgdate() {
        return sgdate;
    }

    public void setSgdate(String sgdate) {
        this.sgdate = sgdate;
    }

    @Basic
    @Column(name = "sgstat")
    public String getSgstat() {
        return sgstat;
    }

    public void setSgstat(String sgstat) {
        this.sgstat = sgstat;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SgmxEntity that = (SgmxEntity) o;
        return id == that.id &&
                Objects.equals(sgid, that.sgid) &&
                Objects.equals(sgname, that.sgname) &&
                Objects.equals(sgmony, that.sgmony) &&
                Objects.equals(sgmond, that.sgmond) &&
                Objects.equals(sgdate, that.sgdate) &&
                Objects.equals(sgstat, that.sgstat);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, sgid, sgname, sgmony, sgmond, sgdate, sgstat);
    }
}
